
    <!DOCTYPE html>
    <html lang="zh-CN">
    <head>
      <meta charset="UTF-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <title>ASK和Agent用那个 - 学习卡片</title>
      <style>
        body { font-family: sans-serif; background-color: #f0f8ff; color: #333; display: flex; flex-direction: column; align-items: center; padding: 50px 20px; }
        .header h1 { font-size: 32px; }
        .grid-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; width: 100%; max-width: 1200px; }
        .card-container { perspective: 1200px; cursor: pointer; height: 250px; }
        .card { width: 100%; height: 100%; position: relative; transform-style: preserve-3d; transition: transform 0.7s; border-radius: 16px; box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
        .card-container.flipped .card { transform: rotateY(180deg); }
        .card-face { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; display: flex; flex-direction: column; box-sizing: border-box; border-radius: 16px; background-color: #fff; padding: 24px; }
        .card-back { background-color: #f0fff4; transform: rotateY(180deg); justify-content: space-between; }
        .card-category { font-size: 14px; color: #0052d9; margin-bottom: 8px; font-weight: 500; }
        .card-question { font-size: 20px; font-weight: 500; flex-grow: 1; display: flex; align-items: center; justify-content: center; text-align: center; }
        .card-answer-wrapper { flex-grow: 1; overflow-y: auto; }
        .card-answer { font-size: 15px; line-height: 1.7; }
        .card-footer { font-size: 13px; color: #8a919f; border-top: 1px solid #f0f0f0; padding-top: 16px; margin-top: 16px; }
        .card-source { font-size: 13px; color: #8a919f; border-top: 1px solid #f0f0f0; padding-top: 12px; margin-top: 12px; }
      </style>
    </head>
    <body>
      <div class="header">
        <h1>ASK和Agent用那个 - 学习卡片</h1>
      </div>
      <div class="grid-container">
        
    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">特性</div>
          <div class="card-question">Cursor中的ASK (AI Sidebar Knowledge)功能的主要作用和限制是什么？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">特性</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">ASK是一个位于编辑器侧边栏的问答交互界面，允许用户就代码提问。它的主要限制是不会主动搜索代码库，只基于当前可见的内容和上下文来回答问题。</div>
          </div>
          <div class="card-source">来源: ASK (AI Sidebar Knowledge)：交互问答聊天</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">特性</div>
          <div class="card-question">Agent模式相比于ASK有哪些更强大的能力？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">特性</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">Agent是一种更强大的AI助手模式，它可以主动浏览和理解整个代码库，能够执行如搜索相关文件、分析代码结构、创建文件等复杂任务，并通过多步骤行动来解决问题。</div>
          </div>
          <div class="card-source">来源: Agent：创建文件，生成代码。</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">对比</div>
          <div class="card-question">在代码理解范围方面，ASK和Agent最核心的区别是什么？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">对比</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">最核心的区别在于，ASK的代码理解范围仅限于当前可见的内容，而Agent能够理解整个代码库。</div>
          </div>
          <div class="card-source">来源: 主要区别</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">对比</div>
          <div class="card-question">从主动性的角度看，ASK和Agent是如何工作的？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">对比</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">ASK是被动地回答用户提出的问题；相反，Agent是主动的，它能够主动探索和分析代码库来解决问题。</div>
          </div>
          <div class="card-source">来源: 主要区别</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">对比</div>
          <div class="card-question">ASK和Agent在执行能力上有何不同？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">对比</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">ASK的执行能力仅限于提供建议和解释。而Agent则可以实际执行搜索和分析等任务。</div>
          </div>
          <div class="card-source">来源: 主要区别</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">场景</div>
          <div class="card-question">在哪些具体场景下使用ASK功能会更合适？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">场景</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">当用户对当前正在编辑的代码有简单疑问、需要对特定代码片段进行解释，或者请求简单的代码示例或修改建议时，使用ASK会更合适。</div>
          </div>
          <div class="card-source">来源: 使用场景</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">场景</div>
          <div class="card-question">什么类型的复杂任务适合使用Agent模式来处理？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">场景</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">当需要理解项目整体结构、查找特定功能在多文件中的实现、分析复杂的代码依赖关系，或进行跨多个文件的代码理解和修改时，适合使用Agent模式。</div>
          </div>
          <div class="card-source">来源: 使用场景</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">性能</div>
          <div class="card-question">为什么Agent模式会比ASK消耗更多的计算资源和额度？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">性能</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">因为Agent模式需要索引和理解整个代码库来执行其复杂的任务，这个过程会消耗更多的计算资源和额度，而ASK则相对更轻量级。</div>
          </div>
          <div class="card-source">来源: 性能考虑</div>
        </div>
      </div>
    </div>

    <div class="card-container" onclick="this.classList.toggle('flipped');">
      <div class="card">
        <div class="card-face card-front">
          <div class="card-category">决策</div>
          <div class="card-question">用户应根据什么原则来选择使用ASK还是Agent模式？</div>
          <div class="card-footer">点击卡片查看答案</div>
        </div>
        <div class="card-face card-back">
          <div class="card-category">决策</div>
          <div class="card-answer-wrapper">
            <div class="card-answer">用户应根据任务的复杂度和问题的范围来选择。对于快速、简单的问答交互，选择轻量级的ASK；对于涉及整个代码库的复杂任务，则选择功能更强大的Agent。</div>
          </div>
          <div class="card-source">来源: 性能考虑</div>
        </div>
      </div>
    </div>

      </div>
    </body>
    </html>
